(function (line) {
    line.extend(line, {
        log:function(inMix,inType){
            if(!console){
                //TODO: never throw error, maybe use console.error instead
                throw new Error('Your browser has no console object!')
            }
            if(inType){
                return console[inType](inMix);
            }
            if(typeof inMix ==="string"){
                return console.log(inMix)
            }else{
                return console.dir(inMix)
            }
        },
        error:function(msg,type){
            type=type || Error;
            throw new type(msg);
        }
    });
})(line);